﻿//using System;
//using System.Collections.Generic;
//using System.ComponentModel;
//using System.Data;
//using System.Drawing;
//using System.Linq;
//using System.Text;
//using System.Windows.Forms;
//using DotNET4Study;

//namespace WinDemo
//{
//    public partial class ConcurrentUsingDemo : Form
//    {
//        public ConcurrentUsingDemo()
//        {
//            InitializeComponent();
//        }

//        private void button1_Click(object sender, EventArgs e)
//        {
//            //验证ConcurrentBag放入的对象可以是一个窗体
//            Form2 f2 = new Form2();
//            ConcurrentStudy.ConcurrentBagUsing<Form2>.Add(f2);
//            Form2 foo=  ConcurrentStudy.ConcurrentBagUsing<Form2>.Get(f2);
//            foo.ShowDialog();
//        }
//    }
//}
